home *** CD-ROM | disk | FTP | other *** search
Oberon Document | 1994-06-07 | 7.2 KB | 140 lines | [oODC/obnF] |
- Documents.StdDocumentDesc
- Documents.DocumentDesc
- Containers.ViewDesc
- Views.ViewDesc
- Stores.StoreDesc
- Documents.ModelDesc
- Containers.ModelDesc
- Models.ModelDesc
- Stores.ElemDesc
- TextViews.StdViewDesc
- TextViews.ViewDesc
- TextModels.StdModelDesc
- TextModels.ModelDesc
- TextModels.AttributesDesc
- Geneva
- Geneva
- StdStamps.StdViewDesc
- Geneva
- Geneva
- Geneva
- MODULE MacWindowMgr;
- (* cp
- Window definition support eliminated
- Window IS GrafPort, no WindowPeek type
- PinRect moved to QuickDraw
- IMPORT SYSTEM, MacTypes, MacQuickDraw, MacCQuickDraw;
- CONST
- documentProc* = 0;
- dBoxProc* = 1;
- plainDBox* = 2;
- altDBoxProc* = 3;
- noGrowDocProc* = 4;
- rDocProc* = 16;
- dialogKind* = 2;
- userKind* = 8;
- inDesk* = 0;
- inMenuBar* = 1;
- inSysWindow* = 2;
- inContent* = 3;
- inDrag* = 4;
- inGrow* = 5;
- inGoAway* = 6;
- inZoomIn* = 7;
- inZoomOut* = 8;
- noConstraint* = 0;
- hAxisOnly* = 1;
- vAxisOnly* = 2;
- deskPatID* = 16;
- CODE = 1;
- TYPE
- WindowPtr* = POINTER TO WindowRecord;
- WindowRecord* = RECORD (MacCQuickDraw.CGrafPort)
- windowKind*: INTEGER;
- visible*,
- hilited*,
- goAwayFlag*,
- spareFlag*: BOOLEAN;
- strucRgn*,
- contRgn*,
- updateRgn*: MacQuickDraw.RgnHandle;
- windowDefProc*: MacTypes.ProcHandle;
- dataHandle*: MacTypes.Handle;
- titleHandle*: MacTypes.StringHandle;
- titleWidth*: INTEGER;
- controlList*: MacTypes.Handle;
- nextWindow*: WindowPtr;
- windowPic*: MacQuickDraw.PicHandle;
- refCon*: LONGINT
- END;
- (** Initialization and Allocation **)
- PROCEDURE [CODE] GetWMgrPort* (VAR wPort: MacQuickDraw.GrafPtr) 0A9H, 010H;
- PROCEDURE [CODE] NewWindow* (wStorage: MacTypes.Ptr; boundsRect: MacTypes.Rect; title: MacTypes.Str255;
- visible: BOOLEAN; theProc: INTEGER; behind: WindowPtr;
- goAwayFlag: BOOLEAN; refCon: LONGINT): WindowPtr 0A9H, 013H;
- PROCEDURE [CODE] GetNewWindow* (windowID: INTEGER; wStorage: MacTypes.Ptr;
- behind: WindowPtr): WindowPtr 0A9H, 0BDH;
- PROCEDURE [CODE] CloseWindow* (theWindow: WindowPtr) 0A9H, 02DH;
- PROCEDURE [CODE] DisposeWindow* (theWindow: WindowPtr) 0A9H, 014H;
- (** Window Display **)
- PROCEDURE [CODE] SetWTitle* (theWindow: WindowPtr; title: MacTypes.Str255) 0A9H, 01AH;
- PROCEDURE [CODE] GetWTitle* (theWindow: WindowPtr; VAR title: MacTypes.Str255) 0A9H, 019H;
- PROCEDURE [CODE] SelectWindow* (theWindow: WindowPtr) 0A9H, 01FH;
- PROCEDURE [CODE] HideWindow* (theWindow: WindowPtr) 0A9H, 016H;
- PROCEDURE [CODE] ShowWindow* (theWindow: WindowPtr) 0A9H, 015H;
- PROCEDURE [CODE] ShowHide* (window: WindowPtr; showFlag: BOOLEAN) 0A9H, 008H;
- PROCEDURE [CODE] HiliteWindow* (theWindow: WindowPtr; fHilite: BOOLEAN) 0A9H, 01CH;
- PROCEDURE [CODE] BringToFront* (theWindow: WindowPtr) 0A9H, 020H;
- PROCEDURE [CODE] SendBehind* (theWindow, behindWindow: WindowPtr) 0A9H, 021H;
- PROCEDURE [CODE] FrontWindow* (): WindowPtr 0A9H, 024H;
- PROCEDURE [CODE] DrawGrowIcon* (theWindow: WindowPtr) 0A9H, 004H;
- (** Mouse Location **)
- PROCEDURE [CODE] FindWindow* (thePoint: MacTypes.Point; VAR theWindow: WindowPtr): INTEGER 0A9H, 02CH;
- PROCEDURE [CODE] TrackGoAway* (theWindow: WindowPtr; thePt: MacTypes.Point): BOOLEAN 0A9H, 01EH;
- (** Window Movement and Sizing **)
- PROCEDURE [CODE] MoveWindow* (theWindow: WindowPtr; hGlobal, vGlobal: INTEGER; front: BOOLEAN) 0A9H, 01BH;
- PROCEDURE [CODE] DragWindow* (theWindow: WindowPtr; startPt: MacTypes.Point; boundsRect: MacTypes.Rect) 0A9H, 025H;
- PROCEDURE [CODE] GrowWindow* (theWindow: WindowPtr; startPt: MacTypes.Point; bBox: MacTypes.Rect): LONGINT 0A9H, 02BH;
- PROCEDURE [CODE] SizeWindow* (theWindow: WindowPtr; w, h: INTEGER; fUpdate: BOOLEAN) 0A9H, 01DH;
- (** Update Region Maintenance **)
- PROCEDURE [CODE] InvalRect* (badRect: MacTypes.Rect) 0A9H, 028H;
- PROCEDURE [CODE] InvalRgn* (badRgn: MacQuickDraw.RgnHandle) 0A9H, 027H;
- PROCEDURE [CODE] ValidRect* (goodRect: MacTypes.Rect) 0A9H, 02AH;
- PROCEDURE [CODE] ValidRgn* (goodRgn: MacQuickDraw.RgnHandle) 0A9H, 029H;
- PROCEDURE [CODE] BeginUpdate* (theWindow: WindowPtr) 0A9H, 022H;
- PROCEDURE [CODE] EndUpdate* (theWindow: WindowPtr) 0A9H, 023H;
- (** Miscellaneous Utilities **)
- PROCEDURE [CODE] SetWRefCon* (theWindow: WindowPtr; data: LONGINT) 0A9H, 018H;
- PROCEDURE [CODE] GetWRefCon* (theWindow: WindowPtr): LONGINT 0A9H, 017H;
- PROCEDURE [CODE] SetWindowPic* (theWindow: WindowPtr; pic: MacQuickDraw.PicHandle) 0A9H, 02EH;
- PROCEDURE [CODE] GetWindowPic* (theWindow: WindowPtr): MacQuickDraw.PicHandle 0A9H, 02FH;
- PROCEDURE [CODE] DragGrayRgn* (theRgn: MacQuickDraw.RgnHandle; startPt: MacTypes.Point;
- limitRect, slopRect: MacTypes.Rect; axis: INTEGER;
- actionProc: MacTypes.ProcPtr): LONGINT 0A9H, 005H;
- (** Low-Level Routines **)
- PROCEDURE [CODE] ClipAbove* (window: WindowPtr) 0A9H, 00BH;
- PROCEDURE [CODE] SaveOld* (window: WindowPtr) 0A9H, 00EH;
- PROCEDURE [CODE] DrawNew* (window: WindowPtr; fUpdate: BOOLEAN) 0A9H, 00FH;
- PROCEDURE [CODE] PaintOne* (window: WindowPtr; clobberedRgn: MacQuickDraw.RgnHandle) 0A9H, 00CH;
- PROCEDURE [CODE] PaintBehind* (startWindow: WindowPtr;
- clobberedRgn: MacQuickDraw.RgnHandle) 0A9H, 00DH;
- PROCEDURE [CODE] CalcVis* (window: WindowPtr) 0A9H, 009H;
- PROCEDURE [CODE] CalcVisBehind* (startWindow: WindowPtr;
- clobberedRgn: MacQuickDraw.RgnHandle) 0A9H, 00AH;
- (** 128K ROM **)
- PROCEDURE [CODE] TrackBox* (theWindow: WindowPtr; thePt: MacTypes.Point; partCode: INTEGER): BOOLEAN 0A8H, 03BH;
- PROCEDURE [CODE] ZoomWindow* (theWindow: WindowPtr; partCode: INTEGER; front: BOOLEAN) 0A8H, 03AH;
- PROCEDURE [CODE] InitWindows* 0A9H, 012H;
- END MacWindowMgr.
- TextControllers.StdCtrlDesc
- TextControllers.ControllerDesc
- Containers.ControllerDesc
- Controllers.ControllerDesc
- TextRulers.StdRulerDesc
- TextRulers.RulerDesc
- TextRulers.StdStyleDesc
- TextRulers.StyleDesc
- TextRulers.AttributesDesc
- Geneva
- Documents.ControllerDesc
-